#ifndef AFX_CPROGRESSBAR_H
#define AFX_CPROGRESSBAR_H

#include <windows.h>
#include <commctrl.h>
#include <uxtheme.h>

class CProgressbar {
  private:
    HWND m_hProgressbar;
  public:
    CProgressbar();
    void SetHandle(HWND hProgressbar);
    HWND GetHandle();
    HWND Create(DWORD dwStyle, int x, int y, int w, int h, UINT nID,
        HWND hParent);
    BOOL Destroy();
    INT SetState(int nState);
    INT GetState();
    INT SetRange(int nMinRange, int nMaxRange);
    INT GetRange(BOOL bWhichLimit, PPBRANGE ppBRange);
    INT SetPos(int nNewPos);
    INT GetPos();
    INT DeltaPos(int nIncrement);
    INT SetStep(int nStepInc);
    INT GetStep();
    INT StepIt();
    INT SetMarquee(BOOL bState, UINT nPeriod);
};

#endif // AFX_CPROGRESSBAR_H
